package com.hfi.ood.payroll.classification;

import com.hfi.ood.payroll.domain.Paycheck;
import com.hfi.ood.payroll.domain.PaymentClassification;
import lombok.Builder;
import lombok.Data;
import org.joda.money.Money;

/**
 * @author ChangLiang
 * @date 2020/5/19
 */
@Data
@Builder
public class SalariedClassification implements PaymentClassification {

    /**
     * 月薪
     */
    private Money salary;

    @Override
    public Money calculatePay(Paycheck paycheck) {
        return salary;
    }
}
